From 872f58b6fd3f5146b7aad1210866ecc0f677c6cc Mon Sep 17 00:00:00 2001 From: "stekloff@elm3b216.beaverton.ibm.com" Date: Fri, 10 Mar 2006 00:49:08 +0100 Subject: [PATCH] Fix xmtest 13_create_multinic_pos.py to work with HVM. Signed-off-by: Daniel Stekloff --- tools/xm-test/tests/create/13_create_multinic_pos.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tools/xm-test/tests/create/13_create_multinic_pos.py b/tools/xm-test/tests/create/13_create_multinic_pos.py index eda2e2f8f7..6f86e25f16 100644 --- a/tools/xm-test/tests/create/13_create_multinic_pos.py +++ b/tools/xm-test/tests/create/13_create_multinic_pos.py @@ -5,8 +5,16 @@ from XmTestLib import * -for i in range(0,10): - config = {"vif": ['' for _ in range(0, i)]} +# The current device model, qemu-dm, only supports 8 MAX_NICS currently. +if ENABLE_HVM_SUPPORT: + MAX_NICS = 8 + nic = "type=ioemu, bridge=xenbr0" +else: + MAX_NICS = 10 + nic = '' + +for i in range(0,MAX_NICS): + config = {"vif": [ nic ] * i} domain = XmTestDomain(extraConfig=config) try: -- 2.30.2